package com.example.child_protection.dto.base;

import com.example.child_protection.enums.BooleanEnums;
import com.example.child_protection.validata.BeanValidators;
import com.example.child_protection.validata.GidGroup;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;

import javax.validation.groups.Default;
import java.io.Serializable;

/**
 * 分页请求DTO
 */
@Getter
@Setter
public abstract class BasePageRequestDTO extends BaseRequestDTO {
    private static final long serialVersionUID = 1L;

    @ApiParam(required = true, value = "当前页")
    private Integer pageNum;

    @ApiParam(required = true, value = "每页数")
    private Integer pageSize;

    @JsonIgnore
    private BooleanEnums isOnlyRoot = BooleanEnums.F;
}
